package cn.com.blueInfo.bpm.system.entity;

import cn.com.blueInfo.bpm.common.entity.BaseEntity;
import cn.com.blueInfo.bpm.system.enums.RoleResourcePermission;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 角色-资源关联表
 * @author suxch
 * @since 2025-08-24 01:37:55
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName(value = "mc_sys_role_resource", autoResultMap = true)
@Schema(description = "角色-资源关联表")
public class RoleResource extends BaseEntity {

    /** ID */
    @TableId(type = IdType.INPUT)
    @Schema(description = "ID")
    private Long id;
    /** 角色ID */
    @Schema(description = "角色ID")
    private Long roleId;
    /** 资源ID */
    @Schema(description = "资源ID")
    private Long resourceId;
    /** 权限操作（按钮：1-可点击，0-禁用。字段：1-可见，0-隐藏） */
    @Schema(description = "权限操作（按钮：1-可点击，0-禁用。字段：1-可见，0-隐藏）")
    private RoleResourcePermission permission;

}
